package com.zdb.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

/**
 * @Author Lx
 * @Date 2020/9/14 10:52
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Setter
@Getter
@TableName(value = "zdb_pms_business")
public class Business {         //商家表
    @TableId("id")
    private int id;             //商家编号
    @TableField("pid")
    private int pid;            //省份编号
    @TableField("cid")
    private int cid;            //城市编号
    @TableField("did")
    private int did;            //区县编号
    @TableField("address")
    private String address;     //地址
    @TableField("shop_type")
    private String shopType;    //店铺类型
    @TableField("name")
    private String name;        //店铺名称
    @TableField("license")
    private String license;     //营业执照
    @TableField("check_status")
    private int checkStatus;    //审查状态
    @TableField("username")
    private String username;    //商家用户名
    @TableField("password")
    private String password;    //商家密码
    @TableField("s_photo_address")
    private String sPhotoAddress;//头像地址
    @TableField("phone")
    private String phone;       //商家电话号码

    @Override
    public String toString() {
        return "Business{" +
                "id=" + id +
                ", pid=" + pid +
                ", cid=" + cid +
                ", did=" + did +
                ", address='" + address + '\'' +
                ", shopType='" + shopType + '\'' +
                ", name='" + name + '\'' +
                ", license='" + license + '\'' +
                ", checkStatus=" + checkStatus +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", sPhotoAddress='" + sPhotoAddress + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getDid() {
        return did;
    }

    public void setDid(int did) {
        this.did = did;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getShopType() {
        return shopType;
    }

    public void setShopType(String shopType) {
        this.shopType = shopType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLicense() {
        return license;
    }

    public void setLicense(String license) {
        this.license = license;
    }

    public int getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(int checkStatus) {
        this.checkStatus = checkStatus;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getsPhotoAddress() {
        return sPhotoAddress;
    }

    public void setsPhotoAddress(String sPhotoAddress) {
        this.sPhotoAddress = sPhotoAddress;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
